/**
 * author:Administrator
 * date:2016/1/4
 * desc:TODO
 */

'use strict';

var mongoose = require('../conn/mongoose.js');

var modelName='_test_couponUser';
var model = new mongoose.Schema({
  cvid:{type:Number,default:0,index:true},  /* coupon vid */
  cuid:{type:Number,default:0,index:true},  /* coupon uid */
  uid:{type:Number,index:true},             /* 用户id */
  qty:{type:Number,default:-1},             /* 领取的数量 */
  pendingTransactions:[],                   /* 所处事务 */
});

module.exports = mongoose.model(modelName, model);